package com.fanw.easyExport.core.config;

import java.util.List;

/**
 * 导出任务配置
 */
public class ExportConfig {
    private String taskName;           // 任务名称
    private String outputPath;         // 输出文件路径
    private String delimiter = ",";    // 分隔符，默认为逗号
    private String lineSeparator = System.lineSeparator(); // 行分隔符
    private boolean includeHeader = true; // 是否包含表头
    private List<FieldConfig> fields; // 字段配置列表


    public String getTaskName() { return taskName; }
    public void setTaskName(String taskName) { this.taskName = taskName; }

    public String getOutputPath() { return outputPath; }
    public void setOutputPath(String outputPath) { this.outputPath = outputPath; }

    public String getDelimiter() { return delimiter; }
    public void setDelimiter(String delimiter) { this.delimiter = delimiter; }

    public String getLineSeparator() { return lineSeparator; }
    public void setLineSeparator(String lineSeparator) { this.lineSeparator = lineSeparator; }

    public boolean isIncludeHeader() { return includeHeader; }
    public void setIncludeHeader(boolean includeHeader) { this.includeHeader = includeHeader; }

    public List<FieldConfig> getFields() { return fields; }
    public void setFields(List<FieldConfig> fields) { this.fields = fields; }
}
